/*
 * @Author: WaiteZQ 1439112557@qq.com
 * @Date: 2025-10-15 11:34:48
 * @LastEditors: WaiteZQ 1439112557@qq.com
 * @LastEditTime: 2025-10-15 11:37:53
 * @FilePath: \reactivelist\src\utils\utils.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export function debunce (fn:Function,delay:number){
    let timer =null
    return function (...args:any[]){
         if(timer) clearTimeout(timer)
        timer = setTimeout(()=>{
            fn.apply(this,args) 
        },delay)
    }

}